</head>
<body>
<div class="f-sep10"></div>
<div class="m-filter s-filter m-form">
	<form id="filter_form">
	 栏目：
		<select id="cid" name="cid" onChange="ajaxload()" style="width:84px;">
			<option value="0">全部栏目</option>
			<!--foreach:{$category_list $vo}-->
			<option <?php if($vo['type']==0 ){ ?>  value="0" style="background-color:#ccc"  disabled="disabled" <?php }else{ ?>  value="{$vo['cid']}" <?php } ?> >
			
                  {$vo['cname']}
              
			</option>
			<!--{/foreach}-->
		</select>
		&nbsp;&nbsp;内容排序：
		<select id="sequence" name="sequence" onChange="ajaxload()">
			<option value="1">更新时间 新->旧</option>
			<option value="2">更新时间 旧->新</option>
			<option value="3">内容ID 大->小</option>
			<option value="4">内容ID 小->大</option>
			<option value="5">添加时间 新->旧</option>
			<option value="6">添加时间 旧->新</option>
			<option value="7">访问次数 多->少</option>
			<option value="8">访问次数 少->多</option>
		</select>
		关键词：
		<input type="text" id="keyword" name="keyword" class="u-ipt  u-ipt-3" />
		<button type="button" onClick="ajaxload()" class="u-btn u-btn-sm">搜索</button>
	</form>
</div>
<div class="m-list-table">
	<table class="m-table m-table-row" id="table">
		<thead>
			<tr role="head">
				<th width="50">ID</th>
				<th>标题</th>
				<th class="cola">分类</th>
				<th width="170">更新时间</th>
				<th width="60">操作</th>
			</tr>
		</thead>
		<tbody>
		</tbody>
	</table>
</div>

<div class="f-cb"></div>
<div class="g-foot-tool">
	<div class="m-page" id="pages"></div>
</div>
<div class="f-cb"></div>

<div class="f-sep10" ></div>
<div class="f-sep10"></div>
</body>
<script>
var page;
var select = new function(){}; 
Do.ready('base','page','tip','dialog', function() {
	win = art.dialog.open.origin;
	page = $("#pages").myPagination({
		pageCount:1,
		ajax: {
			on: true,
			pageCountId:'countpage',
			url: '{$url(admin_list/search_list)}',
			dataType: 'json',
			param:$('#filter_form').serialize(),
			ajaxStart: function() {
				$("#table tbody").html('<tr><td colspan="7"><center>正在加载...请稍候！</center></td></tr>'); 
			},
			callback: function(json) {
				setTimeout(function() {
					$("#table tbody").html(json.info);
				}, 200);
			}
		}
	});
	ajaxload = function ajaxload(){
		page.onLoad({
			param:$('#filter_form').serialize()
		});
	};
	//选择
	window.select=function select(aid,title){
		$('#aid',win.document).val(aid);
		$('#s-title',win.document).html(title);
		$('#title',win.document).val(title);
		art.dialog.close();
		art.dialog.tips('已选择该内容！', 3);
	}
		
});
</script>